package com.wangyadong.hobby.common.constants;

public enum RedisKeyConstants {

    /**
     * 任务类型
     */
    QUESTION("question:", "问题"),
    SCORE("score:", "分数"),
    TIME("time:", "时间"),
    USEFULL("usefull:", "是否有用"),
    EXAM("exam:", "考试"),
    ANSWER("answer:", "答案");

    private String code;
    private String desc;

    RedisKeyConstants() {
    }

    RedisKeyConstants(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }


}
